package com.baizhi.controller;

import com.baizhi.service.CmfzRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * Created by Administrator on 2019/4/20 0020.
 */
@Controller
@RequestMapping("/role")
public class CmfzRoleController {
    @Autowired
    private CmfzRoleService cmfzRoleService;

    @RequestMapping("/showAll")
    public @ResponseBody Map showAll(Integer page, Integer rows){
        Map map = cmfzRoleService.queryAll(page, rows);
        return map;
    }
}
